import { request } from "./reqblog"

export function blogall() {
    return request({
        method: 'Get',
      url: '/Selectall',
    })
  }
  export function all() {
    return request({
        method: 'Get',
      url: '/name',
    })
  }
  export function add(params) {
    return request({
      method: 'POST',
      url: '/Create',
      params   
    })
  }

  export function select(blogs_id) {
    return request({
      method: 'POST',
      url: '/Select',
      params:{
      blogs_id
    }
    })
  }
  export function views(blogs_id) {
    return request({
      method: 'POST',
      url: '/Addview',
      params:{
      blogs_id
    }
    })
  }
  export function addcomm(blogs_id) {
    return request({
      method: 'POST',
      url: '/Addcomm',
      params:{
      blogs_id
    }
    })
  }
 
  export function sort(id) {
    return request({
      method: 'POST',
      url: '/Sort',
      params:{
    id
    }
    })
  }
  export function del(id) {
    return request({
      method: 'POST',
      url: '/Delete',
      params:{
        id
      }
    })
  }
  export function jiancomm(blogs_id) {
    return request({
      method: 'POST',
      url: '/Jiancomm',
      params:{
        blogs_id
      }
    })
  }
  export function update(id) {
    return request({
      method: 'POST',
      url: '/Edit',
      params:
      id   
    })
  }
